home *** CD-ROM | disk | FTP | other *** search
- Attribute VB_Name = "NewMacros"
- Option Explicit
- Const GENIEPATH = "C:\Windows\Msagent\chars\Genie.acs"
- Dim MSAgent As Agent
- Dim vrajitor As Object
- Sub Speak()
- Set MSAgent = New Agent
- MSAgent.Connected = True
- MSAgent.Characters.Load "Genie", GENIEPATH
- Set vrajitor = MSAgent.Characters("Genie")
- With vrajitor
- .Top = 125
- .Left = 185
- .Show
- .Play "Greet"
- If ActiveDocument.Characters.Count <= 1 Then
- .Speak "This document is empty"
- Else
- .MoveTo 600, 400
- .Play "Read"
- .Speak ActiveDocument.Content
- .Play "ReadReturn"
- .Play "Idle2_2"
- .Play "Wave"
- End If
- .Hide
- End With
- End Sub
-
-